package com.ysd.twocrm.controller;

import com.ysd.twocrm.echarts.EchartsImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
@RequestMapping("/echarts")
public class EchartsController {
    @Autowired
    private EchartsImpl echarts;
    /*
     * @Description 返回饼状图
     * @param
     * @return java.lang.Object
     * @author liusupeng
     * @date 2020/6/6 14:06
     */
    @GetMapping
    public Object getAll() throws ParseException {

       //System.out.println(echarts.echarts4().toString());
        return echarts.echarts4();
    }
}
